﻿using FluentNHibernate.Mapping;
using WebSite.Dal.Entities;

namespace WebSite.Dal.Mappings
{
	public class UsersMapping : ClassMap<User>
	{
		public UsersMapping()
		{
			Table("users");

			Id(x => x.UserId);
			Map(x => x.UserName);
			Map(x => x.Email);
			Map(x => x.FirstName);
			Map(x => x.LastName);
			Map(x => x.IsActive);
			Map(x => x.CreatedDate);
			Map(x => x.IsOnline);
			Map(x => x.LastLoginDate);
		}
	}
}